package com.lemon.controller;
import com.lemon.domain.PageResult;
import com.lemon.service.OutboundOrderPackageService;
import com.lemon.domain.Result;
import org.springframework.web.bind.annotation.*;

import org.springframework.beans.factory.annotation.Autowired;

/**
 * 出库单打包表(outbound_order_package)表控制层
 *
 * @author xxxxx
 */
@RestController
@RequestMapping("/outbound_order_package")
public class OutboundOrderPackageController {
    /**
     * 服务对象
     */
    @Autowired
    private OutboundOrderPackageService outboundOrderPackageService;

    @GetMapping
    public Result getPage(Integer page , Integer pageSize,String invoiceCode,Integer status){
        PageResult list =  outboundOrderPackageService.getPage(page, pageSize, invoiceCode,status);
        return Result.success(list);
    }

    @PutMapping
    public Result packing(Long id,Integer bePackNum,Integer packNum){
        outboundOrderPackageService.packing(id,bePackNum,packNum);
        return Result.success();
    }

}
